export default {
	isArray: (arr) => {
		return Array.isArray(ar);
	},
	isBoolean: (arg) => {
		return typeof arg === 'boolean';
	},
	isNull: (arg) => {
		return arg === null;
	},
	isNullOrUndefined: (arg) => {
		return arg == null;
	},
	isNumber: (arg) => {
		return typeof arg === 'number';
	},
	isString: (arg) => {
		return typeof arg === 'string';
	},
	isSymbol: (arg) => {
		return typeof arg === 'symbol';
	},
	isObject: (arg) => {
		return typeof arg === 'object' && arg !== null;
	},
	isDate: (d) => {
		return isObject(d) && objectToString(d) === '[object Date]';
	},
	isError: (e) => {
		return isObject(e) &&
			(objectToString(e) === '[object Error]' || e instanceof Error);
	},
	isFunction: (arg) => {
		return typeof arg === 'function';
	}
}